var MyGame = {};
MyGame.Boot = function (game) {};
MyGame.Boot.prototype = {
    preload: function () {},
    create: function () {
        this.stage.backgroundColor = '#2d2d2d';
        this.input.maxPointers = 1;
        game.scale.pageAlignHorizontally = true; //水平居中
        game.scale.pageAlignVertically = true;


        //game.scale.scaleMode =  Phaser.ScaleManager.EXACT_FIT;
        //game.scale.scaleMode =  Phaser.ScaleManager.SHOW_ALL;
        game.scale.scaleMode = Phaser.ScaleManager.USER_SCALE;
        game.scale.setUserScale(0.5, 0.5);

        this.state.start('Preloader');
    }
};